<template>
	<view>
		<page-head :title="'积分规则'" :headtype="2"></page-head>
		<view class="gz marginAuto">
			<u-parse :content="integz"></u-parse>
			<!-- <view class="gztitle">积分如何获取？</view>
			<view class="gzmain">
				<view class="gztxt">1、签到可获得10积分</view>
				<view class="gztxt">2、邀请好友完成注册可获得10积分</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				integz:''
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData(){
				let sendData = {
					field:'integral_rule'
				};
				this.apifun.unirequest('/api/index/getConfigInfo','post',sendData,(res)=>{
					// console.log(res)
					if(res.code === 200){
						let datas = res.data;
						this.integz = datas;
					}else{
						this.apifun.toast(res.msg)
					}
				})
			}
		},
	};
</script>

<style scoped lang="scss">
	.gz{
		width: 90%;
		padding: 24rpx 0;
		.gztitle{
			margin-top:40rpx;
			line-height: 50rpx;
			font-size: 32rpx;
			color: #333333;
		}
		.gzmain{
			margin-top:10rpx;
			.gztxt{
				line-height: 40rpx;
				color:#333333;
				font-size: 28rpx;
			}
		}
	}
</style>